package bean;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;


@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(discriminatorType = DiscriminatorType.STRING)
@DiscriminatorValue(value="R")
public class Ropa extends Articulo {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4299749881608070525L;
	private String talle;
	private String origen;
	
	public Ropa(){
				
	}
	
	public Ropa(int id, int referencia, String linea, String descripcion,
			String color, String seccion, float preciovu, int stock, String talle,
			String origen){
		super(id, referencia, linea, descripcion, color, seccion, preciovu, stock);
		this.talle = talle;
		this.origen = origen;
	}

	public String getTalle() {
		return talle;
	}

	public void setTalle(String talle) {
		this.talle = talle;
	}

	public String getOrigen() {
		return origen;
	}

	public void setOrigen(String origen) {
		this.origen = origen;
	}
	
	
	

}
